package com.yehangtech.designpattern.创建型_建造者.menu;



import com.yehangtech.designpattern.创建型_建造者.entity.DuluxCoat;
import com.yehangtech.designpattern.创建型_建造者.entity.IMatter;
import com.yehangtech.designpattern.创建型_建造者.entity.LevelOneCeiling;

import java.math.BigDecimal;
import java.util.List;

public class Builder {

    private final DecorationPackagingMenu decorationPackagingMenu=new DecorationPackagingMenu();

    public List<IMatter> getIList(){
        return decorationPackagingMenu.addCeiling(new LevelOneCeiling()).addCoat(new DuluxCoat()).getDetail();
    }
    public BigDecimal getIPriceTotal(){
        return decorationPackagingMenu.addCeiling(new LevelOneCeiling()).addCoat(new DuluxCoat()).getPriceTotal();
    }
}
